package GUI;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.PropertyVetoException;
import java.util.ArrayList;

import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Cursor;
import java.awt.Font;
import javax.swing.JPanel;

import Client.FlowerMain;
import java.awt.ComponentOrientation;
/**
 * This class create  Inventory GUI
 * @author Gabi Revah
 * @author Aviad Almog
 */
public class Inventory extends ManagerWindow {
	
	 private FlowerInventory FlowerInv;
/**
 * Inventory constructor 
 * @throws PropertyVetoException
 */
	public Inventory () throws PropertyVetoException  {
		initComponents();	
		}
	/**
	 * This method init the Inventory window 	 
	 */
		private void initComponents()  {
		
		JPanel panel = new JPanel();
		panel.setBounds(339, 69, 447, 270);
		add(panel);
		panel.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setBounds(167, 13, 98, 108);
		panel.add(lblNewLabel);
		lblNewLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		
		lblNewLabel.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent arg0) {
				
				{
					ArrayList<String> AddArray=new ArrayList<String>();
					AddArray.add("FlowerInv");
					FlowerMain.chat.handleMessageFromGui(AddArray);
				}
				}
				
		});
		lblNewLabel.setIcon(new ImageIcon(Inventory.class.getResource("/images/flowerss.png")));
		
		JLabel lblNewLabel_3 = new JLabel("");
		lblNewLabel_3.setBounds(328, 25, 85, 85);
		panel.add(lblNewLabel_3);
		lblNewLabel_3.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		lblNewLabel_3.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent arg0) {
				
				{
					
					ArrayList<String> AddArray=new ArrayList<String>();
					AddArray.add("RawInv");
					FlowerMain.chat.handleMessageFromGui(AddArray);
				}
				}
				
		});
		lblNewLabel_3.setIcon(new ImageIcon(Inventory.class.getResource("/images/met.png")));
		
		JLabel label = new JLabel("\u05DE\u05DC\u05D0\u05D9 \u05E4\u05E8\u05D7\u05D9\u05DD");
		label.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		label.setFont(new Font("Tahoma", Font.PLAIN, 17));
		label.setBounds(145, 120, 120, 21);
		panel.add(label);
		
		JLabel lblNewLabel_2 = new JLabel("");
		lblNewLabel_2.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent arg0) {
				
				{
					ArrayList<String> AddArray=new ArrayList<String>();
					AddArray.add("VaseInv");
					FlowerMain.chat.handleMessageFromGui(AddArray);
				}
				}
				
		});
		lblNewLabel_2.setBounds(32, 13, 98, 108);
		panel.add(lblNewLabel_2);
		lblNewLabel_2.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		lblNewLabel_2.setIcon(new ImageIcon(Inventory.class.getResource("/images/vase.png")));
		
		JLabel label_1 = new JLabel("\u05DE\u05DC\u05D0\u05D9 \u05D0\u05D2\u05E8\u05D8\u05DC\u05D9\u05DD");
		label_1.setFont(new Font("Tahoma", Font.PLAIN, 17));
		label_1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		label_1.setBounds(13, 120, 120, 21);
		panel.add(label_1);
		
		JLabel lblNewLabel_4 = new JLabel("\u05DE\u05DC\u05D0\u05D9 \u05D7\u05D5\u05DE\u05E8\u05D9 \u05D2\u05DC\u05DD");
		lblNewLabel_4.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		lblNewLabel_4.setFont(new Font("Tahoma", Font.PLAIN, 17));
		lblNewLabel_4.setBounds(301, 113, 119, 28);
		panel.add(lblNewLabel_4);
		
		JLabel lblNewLabel_1 = new JLabel("");
		lblNewLabel_1.setIcon(new ImageIcon(Inventory.class.getResource("/images/inventoryBG1.png")));
		lblNewLabel_1.setBounds(0, 0, 511, 415);
		add(lblNewLabel_1);
		
		
	}
}
